package com.mhc.haval.manager;

import com.subaru.common.query.PageResult;
import com.mhc.haval.dal.model.RoleFuncDO;
import com.mhc.haval.dal.query.RoleFuncQuery;

import java.util.List;


/**
 * Manager for RoleFunc.
 */
public interface RoleFuncManager {
    /**
     * query count by query condition.
     */
    int countByQuery(RoleFuncQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(RoleFuncQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(RoleFuncDO record);

    /**
     * insert selective.
     */
    long insertSelective(RoleFuncDO record);

    /**
     * select by query condition.
     */
    List<RoleFuncDO> selectByQuery(RoleFuncQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<RoleFuncDO> selectByQueryWithPage(RoleFuncQuery query);

    /**
     * select by primary key.
     */
    RoleFuncDO selectByPrimaryKey(Long id);

    /**
     * select by role id.
     */
    List<RoleFuncDO> selectByRoleId(Long roleId);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( RoleFuncDO record,  RoleFuncQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(RoleFuncDO record, RoleFuncQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(RoleFuncDO record);
}